import Layout from '@/views/admin/Layout.vue'

export default {
  path: '/admin',
  component: Layout,
  meta: { requiresAuth: true },
  children: [
    {
      path: 'certificates',
      name: 'CertificateList',
      component: () => import('@/views/admin/CertificateList.vue'),
      meta: { title: '证书管理', icon: 'Document' }
    },
    {
      path: 'field',
      name: 'FieldList',
      component: () => import('@/views/admin/FieldList.vue'),
      meta: { title: '字段管理', icon: 'List' }
    },
    {
      path: 'data',
      name: 'DataManagement',
      component: () => import('@/views/admin/DataManagement.vue'),
      meta: { title: '数据管理', icon: 'DataLine' }
    },
    {
      path: 'departments',
      name: 'DepartmentList',
      component: () => import('@/views/admin/DepartmentList.vue'),
      meta: { title: '部门管理', icon: 'OfficeBuilding', noCache: true }
    },
    {
      path: 'users',
      name: 'UserList',
      component: () => import('@/views/admin/UserList.vue'),
      meta: { title: '用户管理', icon: 'User', noCache: true }
    },
    {
      path: 'permission-templates',
      name: 'PermissionTemplateList',
      component: () => import('@/views/admin/PermissionTemplateList.vue'),
      meta: { title: '权限模板', icon: 'Lock' }
    },
    {
      path: 'system/settings',
      name: 'SystemSettings',
      component: () => import('@/views/admin/SystemSettings.vue'),
      meta: { title: '系统设置', icon: 'Setting' }
    },
    {
      path: 'change-password',
      name: 'ChangePassword',
      component: () => import('@/views/admin/ChangePassword.vue'),
      meta: { title: '修改密码', icon: 'Key' }
    }
  ]
} 